import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { RechargeService } from './recharge.service';
import { RechargeController } from './recharge.controller';
import { RechargeRule } from './entities/recharge-rule.entity';
import { UserRecharge } from './entities/user-recharge.entity';
import { WalletModule } from '../wallet/wallet.module';

/**
 * 充值模块
 */
@Module({
  imports: [
    TypeOrmModule.forFeature([RechargeRule, UserRecharge]),
    WalletModule,
  ],
  controllers: [RechargeController],
  providers: [RechargeService],
  exports: [RechargeService],
})
export class RechargeModule {}